package com.gayworld.ws.authentication;

import java.security.SignatureException;

import org.springframework.stereotype.Component;

@Component
public class Credentials {
	 
	public static  String qbAppId = "5949";
	 
	public static  String qbAuthorizationKey = "aSeCFXQXqKQ4-hP";
 
	private static String authorization_secret = "BjdnSB55Sfxade4";
 

	/**
	 * @param signature
	 *            the signature to set
	 * @return 
	 */
	public static String getSignature(String signatureParams) {
	
		String signature = null;

		try {
			signature = Signature.calculateHMAC_SHA(signatureParams,
					authorization_secret);
		} catch (SignatureException e) {
			e.printStackTrace();
		}
		return signature;
	}
 

}
